home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17037 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: airdmhor.gen.nz!not-for-mail
  2. From: gumboot@airdmhor.gen.nz (Simon Hosie)
  3. Newsgroups: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
  4. Subject: Re: Young programmers read me.
  5. Followup-To: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
  6. Date: 13 Apr 1996 08:52:39 +1200
  7. Organization: My game company
  8. Message-ID: <4kmfqn$e0f@airdmhor.gen.nz>
  9. References: <4icpp9$7hr@barad-dur.nas.com> <aidan-0404961557290001@meathook.intac.com> <3165AD94.6F3A@datalytics.com> <j-jahnke-0604960016160001@ntcs-ip8.uchicago.edu> <4keejc$lpi@tpd.dsccc.com> <Pine.OSF.3.91.960411093444.20958D-100000@bud.cc.swin.edu.au>
  10. NNTP-Posting-Host: airdmhor.gen.nz
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. On 9 Apr 1996, Kevin Cline wrote:
  14. > This should not be a problem if the code is properly indented, ala
  15. > if (something_happened) {
  16. >   do_something_else();
  17. > }
  18.  
  19. John Joseph Newbigin:
  20. > But it is a lot easier to read
  21. >
  22. > if(something_happened)
  23. > {
  24. >      do_something_else();
  25. > }
  26.  
  27.   Umm.. how about just
  28.  
  29.     if(something_happened)
  30.         do_something_else();
  31.